<?php
// 用于创建数据缓存
class Mencache
{
    public function set($k,$v)
    {

    }
    public function get($k,$v)
    {
        
    }
    public function delete($k,$v)
    {
        
    }
}
class Redis
{
    public function set($k,$v)
    {

    }
    public function get($k,$v)
    {
        
    }
    public function delete($k,$v)
    {
        
    }
} 
class Cache
{
    public static function factory()
    {
        return new Redis();
    }
}
$caceh = Cache::factory();
$cache->set();